﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Accesos.aspx.cs" Inherits="Jom.Aplicaciones.Accesos" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="gvAccesos" runat="server" AllowPaging="True" 
    AllowSorting="True" AutoGenerateColumns="False" BackColor="White" 
    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
    DataSourceID="ldsJOM" Width="100%">
        <Columns>
            <asp:BoundField DataField="Usuario" HeaderText="Usuario" ReadOnly="True" 
                SortExpression="Usuario" />
            <asp:BoundField DataField="Fecha" HeaderText="Fecha" ReadOnly="True" 
                SortExpression="Fecha" ItemStyle-HorizontalAlign="Center" />
            <asp:CheckBoxField DataField="Exitoso" HeaderText="Exitoso" ReadOnly="True" 
                SortExpression="Exitoso" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="IP" HeaderText="IP" ReadOnly="True" 
                SortExpression="IP" ItemStyle-HorizontalAlign="Center" />
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
        <RowStyle ForeColor="#000066" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#007DBB" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#00547E" />
    </asp:GridView>
    <asp:LinqDataSource ID="ldsJOM" runat="server" 
    ContextTypeName="BLLJom.AplicacionesDataContext" EntityTypeName="" 
    OrderBy="IdRegistroLogin desc" Select="new (Usuario, Fecha, Exitoso, IP)" 
    TableName="JOM_RegistroLogins">
    </asp:LinqDataSource>
</asp:Content>
